package fr.utbm.gi.vi51.slizers.pw.learning;

import java.io.Serializable;

import fr.utbm.gi.vi51.slizers.framework.learning.QState;

public class CreatureQState implements QState, Serializable
{
	/**
	 * 
	 */
	private static final long	serialVersionUID	= -2800757424511355622L;
	private CreatureState	value;

	/**
	 * Parameterized constructor.
	 * 
	 * @param s the state
	 */
	public CreatureQState( CreatureState s )
	{
		value = s;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see fr.utbm.gi.vi51.slizers.framework.learning.QComparable#toInt()
	 */
	@Override
	public int toInt()
	{
		return value.ordinal();
	}

	/**
	 * Returns the state enum value.
	 * 
	 * @return the state enum value
	 */
	public CreatureState getState()
	{
		return this.value;
	}
}
